﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VCC.Site.ViewModels.PathSubMenuModel>" %>
<%@ Import Namespace="VCC.Lib.Common" %>
<div id="ul_submenu">
<ul>
    <li><a href="/Home"><b>Trang chủ</b></a><span></span></li>
    <%if (Model != null)
      {%>
    <%if (Model.ParentCategory != null)
      { %>
       <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.ParentCategory.Name,string.Empty, string.Empty)%>"><%=Model.ParentCategory.Name%></a><span></span></li> 
    <%} %>
    <%if (Model.ChildenCategory != null)
      {%>
        <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.ParentCategory != null ? Model.ParentCategory.Name : string.Empty, Model.ChildenCategory.Name, string.Empty)%>"><%=Model.ChildenCategory.Name%></a><span></span></li> 
    <%}
      if (Model.Suburb != null)
      { %>
       <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.ParentCategory != null ?  Model.ParentCategory.Name : string.Empty, Model.ChildenCategory != null ? Model.ChildenCategory.Name : string.Empty, Model.Suburb.Name)%>"><%=Model.Suburb.Name%></a></li>   
    <%}
      }%>
</ul>
</div>